import request from '@/utils/request'

// 全部演出者
export const getPerformers = () => {
  return request.get('/performers/getAll', {})
}

// 全部演出者
export const createPerformers = (data) => {
  return request.post('/performers/create', data)
}

//更新表演者信息
export const updatePerformers = (data) => {
  return request.post('/performers/update', data)
}

//删除表演者
export const deletePerformers = (id) => {
  return request.post(`/performers/delete/${id}`)
}

//查询演出的演出者
export const getPerformersByPerformId = (performId) => {
  return request.get(`/getByPerformId/${performId}`, {})
}

// 分页查询演出者
export const getPerformersByPage = (pageNum, pageSize) =>
  request.get(`/performers/getPage/${pageNum}/${pageSize}`)

export const getPerformerById = (id) =>
  request.get(`/performers/getByPerformId//${id}`)
